package project.parser.ast.aux;

import project.parser.ast.types.Type;

import static project.parser.tokenizer.TokenType.CLOSED_PAR;
import static project.parser.tokenizer.TokenType.OPEN_PAR;

public abstract class FuncAbstract implements Function {
	protected final Params params;
	protected Type retType;

	public FuncAbstract(Params params) {
		this.params = params;
	}

	public FuncAbstract(Params params, Type retType) {
		this.params = params;
		this.retType = retType;
	}

	@Override
	public String toString() {
		return "" + OPEN_PAR + params + CLOSED_PAR + ": " + retType;
	}
}
